﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="WebSite.admin.title.news" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">


       <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="商品列表"  ShowHeader="true" >
              <Items>
            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">

             <Items>
            <ext:Label ID="lblKeywords"  Width="60px"    runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
            <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>


       <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="418px"  AllowPaging="true" SortColumn="newsName" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="newsId" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
        
             <ext:BoundField Width="200px" ColumnID="newsName" SortField="newsName" DataField="newsName" DataFormatString="{0}"
                HeaderText="文章标题" />
            <ext:BoundField Width="100px" ColumnID="typeId" SortField="typeId" DataField="typeName" DataFormatString="{0}"
                HeaderText="文章分类" />
           <ext:CheckBoxField Width="60px" RenderAsStaticField="true" SortField="visible" DataField="visible" HeaderText="是否显示" />
            <ext:CheckBoxField Width="60px" RenderAsStaticField="true" SortField="isNew" DataField="isNew" HeaderText="是否推荐" />
            <ext:BoundField Width="100px" DataField="updatetime" SortField="updatetime" DataFormatString="{0:yy-MM-dd}"
                HeaderText="更新时间" />
          
          <ext:TemplateField Width="180px" SortField="cardcode" HeaderText="操作">
                <ItemTemplate>
                  
      
                      <a href="#" onclick="openNewTab('ArticleEdit','/admin/title/newsEdit.aspx?nid=<%# Eval("newsId") %>','文章编辑')"; title="编辑">[编辑]</a>
                      <a href="news.aspx?action=del&amp;id=<%# Eval("newsid") %>" onclick="return confirm('确认要删除该文章吗？')" title="删除">[删除]</a>
                    
                </ItemTemplate>
            </ext:TemplateField>
            

        </Columns>
    </ext:Grid>

    </form>
</body>
</html>

